package routes

import (
	"gin_api/app/controller"
	"gin_api/app/middleware"
)

func (router Router) api() {
	apiGroup := router.Group("/api")
	{
		apiGroup.POST("/passport/login", controller.Passport{}.Login)
		apiGroup.Use(middleware.AuthenticationMiddleware.Verify()).GET("users", controller.User{}.List)
	}
}
